Remove various sizing related style properties
authorTimm Bäder <mail@baedert.org>
Tue, 4 Oct 2016 17:53:36 +0000 (19:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 16 Oct 2016 16:17:21 +0000 (18:17 +0200)
12 files changed:
gtk/gtkbuiltinicon.c
gtk/gtkbuiltiniconprivate.h
gtk/gtkcheckbutton.c
gtk/gtkexpander.c
gtk/gtklevelbar.c
gtk/gtkmenu.c
gtk/gtkmenuitem.c
gtk/gtknotebook.c
gtk/gtkpaned.c
gtk/gtkprogressbar.c
gtk/gtkrange.c
gtk/gtkspinbutton.c

index feedb2cbf80f8c02313747c90ce7dfead99037d4..8a2c7d3ece6d9e1685be743bd15ffc6fd82cd19a 100644 (file)
@@ -35,8 +35,7 @@
  * is rendered.
  *
  * Use gtk_builtin_icon_set_default_size to set a non-zero default
- * size for the icon. If you need to support a legacy size style property,
- * use gtk_builtin_icon_set_default_size_property.
+ * size for the icon.
  *
  * Themes can override the acutal image that is used with the
  * -gtk-icon-source property. If it is not specified, a builtin
@@ -292,46 +291,3 @@ gtk_builtin_icon_get_default_size (GtkBuiltinIcon *icon)
 
   return priv->default_size;
 }
-
-/**
- * gtk_builtin_icon_set_default_size_property:
- * @icon: icon to set the property for
- * @property_name: Name of the style property
- *
- * Sets the name of a widget style property to use to compute the default size
- * of the icon. If it is set to no %NULL, it will be used instead of the value
- * set via gtk_builtin_icon_set_default_size() to set the default size of the
- * icon.
- *
- * @property_name must refer to a style property that is of integer type.
- *
- * This function is intended strictly for backwards compatibility reasons.
- */
-void
-gtk_builtin_icon_set_default_size_property (GtkBuiltinIcon *icon,
-                                            const char     *property_name)
-{
-  GtkBuiltinIconPrivate *priv;
-  
-  g_return_if_fail (GTK_IS_BUILTIN_ICON (icon));
-
-  priv = gtk_builtin_icon_get_instance_private (icon);
-
-  if (g_strcmp0 (priv->default_size_property, property_name))
-    {
-      priv->default_size_property = g_strdup (property_name);
-      gtk_widget_queue_resize (gtk_css_gadget_get_owner (GTK_CSS_GADGET (icon)));
-    }
-}
-
-const char *
-gtk_builtin_icon_get_default_size_property (GtkBuiltinIcon *icon)
-{
-  GtkBuiltinIconPrivate *priv;
-
-  g_return_val_if_fail (GTK_IS_BUILTIN_ICON (icon), NULL);
-
-  priv = gtk_builtin_icon_get_instance_private (icon);
-
-  return priv->default_size_property;
-}
index 7aa7e35b9b7fc765042f21ec9907dfeed1789a5b..5da73ef50e67c41401eb20ea8ea05e1a28b7926d 100644 (file)
@@ -59,9 +59,6 @@ GtkCssImageBuiltinType  gtk_builtin_icon_get_image              (GtkBuiltinIcon
 void                    gtk_builtin_icon_set_default_size       (GtkBuiltinIcon         *icon,
                                                                  int                     default_size);
 int                     gtk_builtin_icon_get_default_size       (GtkBuiltinIcon         *icon);
-void                    gtk_builtin_icon_set_default_size_property (GtkBuiltinIcon      *icon,
-                                                                 const char             *property_name);
-const char *            gtk_builtin_icon_get_default_size_property (GtkBuiltinIcon      *icon);
 
 G_END_DECLS
 
index 8b484633276ac17787dd8da53ce1eeeee5b52b15..6cb6446863c329e8ea5d1656a0f8fbecc87e2abf 100644 (file)
@@ -220,22 +220,6 @@ gtk_check_button_class_init (GtkCheckButtonClass *class)
   container_class->add = gtk_check_button_add;
   container_class->remove = gtk_check_button_remove;
 
-  /**
-   * GtkCheckButton:indicator-size:
-   *
-   * The size of the indicator.
-   *
-   * Deprecated: 3.20: Use CSS min-width and min-height on the indicator node.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("indicator-size",
-                                                            P_("Indicator Size"),
-                                                            P_("Size of check or radio indicator"),
-                                                            0,
-                                                            G_MAXINT,
-                                                            INDICATOR_SIZE,
-                                                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   /**
    * GtkCheckButton:indicator-spacing:
    *
@@ -320,7 +304,6 @@ gtk_check_button_init (GtkCheckButton *check_button)
                                                  GTK_WIDGET (check_button),
                                                  priv->gadget,
                                                  NULL);
-  gtk_builtin_icon_set_default_size_property (GTK_BUILTIN_ICON (priv->indicator_gadget), "indicator-size");
   gtk_box_gadget_insert_gadget (GTK_BOX_GADGET (priv->gadget), 0, priv->indicator_gadget, FALSE, GTK_ALIGN_BASELINE);
 
   gtk_check_button_update_node_state (GTK_WIDGET (check_button));
index ad84d5f3bfdda52fa7d331caa3ff5070c7a0da87..0bc124e2cf865674fcd360ad111e8266854933a4 100644 (file)
@@ -373,22 +373,6 @@ gtk_expander_class_init (GtkExpanderClass *klass)
                                                          FALSE,
                                                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
-  /**
-   * GtkExpander:expander-size:
-   *
-   * The size of the expander arrow.
-   *
-   * Deprecated: 3.20: Use CSS min-width and min-height instead.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("expander-size",
-                                                             P_("Expander Size"),
-                                                             P_("Size of the expander arrow"),
-                                                             0,
-                                                             G_MAXINT,
-                                                             DEFAULT_EXPANDER_SIZE,
-                                                             GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   /**
    * GtkExpander:expander-spacing:
    *
@@ -458,7 +442,6 @@ gtk_expander_init (GtkExpander *expander)
                                              priv->title_gadget,
                                              NULL);
   gtk_css_gadget_add_class (priv->arrow_gadget, GTK_STYLE_CLASS_HORIZONTAL);
-  gtk_builtin_icon_set_default_size_property (GTK_BUILTIN_ICON (priv->arrow_gadget), "expander-size");
 
   gtk_box_gadget_insert_gadget (GTK_BOX_GADGET (priv->title_gadget), -1, priv->arrow_gadget, FALSE, GTK_ALIGN_CENTER);
 
index 1081a82d7da045eda614d40e405914c5b7322a48..709b7d489938a75e50901b0df52019436da06741 100644 (file)
@@ -1089,41 +1089,6 @@ gtk_level_bar_class_init (GtkLevelBarClass *klass)
                           FALSE,
                           G_PARAM_READWRITE|G_PARAM_STATIC_STRINGS|G_PARAM_EXPLICIT_NOTIFY);
 
-  /**
-   * GtkLevelBar:min-block-height:
-   *
-   * The min-block-height style property determines the minimum
-   * height for blocks filling the #GtkLevelBar widget.
-   *
-   * Since: 3.6
-   *
-   * Deprecated: 3.20: Use the standard min-width/min-height CSS properties on
-   *   the block elements; the value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property
-    (wclass, g_param_spec_int ("min-block-height",
-                               P_("Minimum height for filling blocks"),
-                               P_("Minimum height for blocks that fill the bar"),
-                               1, G_MAXINT, DEFAULT_BLOCK_SIZE,
-                               G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-  /**
-   * GtkLevelBar:min-block-width:
-   *
-   * The min-block-width style property determines the minimum
-   * width for blocks filling the #GtkLevelBar widget.
-   *
-   * Since: 3.6
-   *
-   * Deprecated: 3.20: Use the standard min-width/min-height CSS properties on
-   *   the block elements; the value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property
-    (wclass, g_param_spec_int ("min-block-width",
-                               P_("Minimum width for filling blocks"),
-                               P_("Minimum width for blocks that fill the bar"),
-                               1, G_MAXINT, DEFAULT_BLOCK_SIZE,
-                               G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-
   g_object_class_install_properties (oclass, LAST_PROPERTY, properties);
 
   gtk_widget_class_set_accessible_type (wclass, GTK_TYPE_LEVEL_BAR_ACCESSIBLE);
index 0143b3b2af1c2def5e644c348b9489ff6f605f46..b7ef233bb2674f6fec768802302a069076463f18 100644 (file)
@@ -942,23 +942,6 @@ gtk_menu_class_init (GtkMenuClass *class)
                                                                 -1, INT_MAX, -1,
                                                                GTK_PARAM_READWRITE));
 
- /**
-  * GtkMenu:arrow-scaling:
-  *
-  * Arbitrary constant to scale down the size of the scroll arrow.
-  *
-  * Since: 2.16
-  *
-  * Deprecated: 3.20: use the standard min-width/min-height CSS properties on
-  *   the arrow node; the value of this style property is ignored.
-  */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_float ("arrow-scaling",
-                                                               P_("Arrow Scaling"),
-                                                               P_("Arbitrary constant to scale down the size of the scroll arrow"),
-                                                               0.0, 1.0, 0.7,
-                                                               GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   binding_set = gtk_binding_set_by_class (class);
   gtk_binding_entry_add_signal (binding_set,
                                 GDK_KEY_Up, 0,
index c9e2e919f7e6a332501a8fb683c559f859f47d78..dcd8dd795601016a50e18c83406c8e3167e667b9 100644 (file)
@@ -881,39 +881,6 @@ gtk_menu_item_class_init (GtkMenuItemClass *klass)
                                                              10,
                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
-  /**
-   * GtkMenuItem:arrow-scaling:
-   *
-   * Amount of space used up by the arrow, relative to the menu item's font
-   * size.
-   *
-   * Deprecated: 3.20: use the standard min-width/min-height CSS properties on
-   *   the arrow node; the value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_float ("arrow-scaling",
-                                                               P_("Arrow Scaling"),
-                                                               P_("Amount of space used up by arrow, relative to the menu item's font size"),
-                                                               0.0, 2.0, 0.8,
-                                                               GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
-  /**
-   * GtkMenuItem:width-chars:
-   *
-   * The minimum desired width of the menu item in characters.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use the standard CSS property min-width; the value of
-   *     this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("width-chars",
-                                                             P_("Width in Characters"),
-                                                             P_("The minimum desired width of the menu item in characters"),
-                                                             0, G_MAXINT, 12,
-                                                             GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_MENU_ITEM_ACCESSIBLE);
   gtk_widget_class_set_css_name (widget_class, "menuitem");
 
index 2b0372bc07262abc0b48cbe019017b4931e385d0..3b9ffc72b844680c170147f0b6bdec5a39aa3cb6 100644 (file)
@@ -3483,7 +3483,6 @@ update_arrow_nodes (GtkNotebook *notebook)
   GtkNotebookPrivate *priv = notebook->priv;
   gboolean arrow[4];
   GtkCssImageBuiltinType up_image_type, down_image_type;
-  const char *style_property_name;
   GtkCssNode *tabs_node;
   gint i;
  
@@ -3494,13 +3493,11 @@ update_arrow_nodes (GtkNotebook *notebook)
     {
       up_image_type = GTK_CSS_IMAGE_BUILTIN_ARROW_UP;
       down_image_type = GTK_CSS_IMAGE_BUILTIN_ARROW_DOWN;
-      style_property_name = "scroll-arrow-vlength";
     }
   else
     {
       up_image_type = GTK_CSS_IMAGE_BUILTIN_ARROW_RIGHT;
       down_image_type = GTK_CSS_IMAGE_BUILTIN_ARROW_LEFT;
-      style_property_name = "scroll-arrow-hlength";
     }
 
   gtk_widget_style_get (GTK_WIDGET (notebook),
@@ -3573,7 +3570,6 @@ update_arrow_nodes (GtkNotebook *notebook)
           else
             gtk_builtin_icon_set_image (GTK_BUILTIN_ICON (priv->arrow_gadget[i]), up_image_type);
           
-          gtk_builtin_icon_set_default_size_property (GTK_BUILTIN_ICON (priv->arrow_gadget[i]), style_property_name);
         }
       else
         {
index c6aafd2db0656ad8b898d19b568abce4b7c5da44..67b39a9b86eb40eb4eb4edec37ac6a112220146e 100644 (file)
@@ -429,22 +429,6 @@ gtk_paned_class_init (GtkPanedClass *class)
                                                          FALSE,
                                                          GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
 
-  /**
-   * GtkPaned::handle-size:
-   *
-   * The width of the handle.
-   *
-   * Deprecated: 3.20: Use CSS min-width and min-height instead.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("handle-size",
-                                                            P_("Handle Size"),
-                                                            P_("Width of handle"),
-                                                            0,
-                                                            G_MAXINT,
-                                                            5,
-                                                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   /**
    * GtkPaned:resize:
    *
index d4f8ee181508a1dcc3b6d57d5ba1d2acdb4e4302..7056a31550312ad9522074cdee4499a3528ba246 100644 (file)
@@ -194,14 +194,6 @@ static void     gtk_progress_bar_allocate_trough   (GtkCssGadget        *gadget,
                                                     gint                 baseline,
                                                     GtkAllocation       *out_clip,
                                                     gpointer             data);
-static void     gtk_progress_bar_measure_trough    (GtkCssGadget        *gadget,
-                                                    GtkOrientation       orientation,
-                                                    gint                 for_size,
-                                                    gint                *minimum,
-                                                    gint                *natural,
-                                                    gint                *minimum_baseline,
-                                                    gint                *natural_baseline,
-                                                    gpointer             data);
 static gboolean gtk_progress_bar_render_trough     (GtkCssGadget        *gadget,
                                                     cairo_t             *cr,
                                                     gint                 x,
@@ -209,14 +201,6 @@ static gboolean gtk_progress_bar_render_trough     (GtkCssGadget        *gadget,
                                                     gint                 width,
                                                     gint                 height,
                                                     gpointer             data);
-static void     gtk_progress_bar_measure_progress  (GtkCssGadget        *gadget,
-                                                    GtkOrientation       orientation,
-                                                    gint                 for_size,
-                                                    gint                *minimum,
-                                                    gint                *natural,
-                                                    gint                *minimum_baseline,
-                                                    gint                *natural_baseline,
-                                                    gpointer             data);
 static void     gtk_progress_bar_measure_text      (GtkCssGadget        *gadget,
                                                     GtkOrientation       orientation,
                                                     gint                 for_size,
@@ -336,97 +320,6 @@ gtk_progress_bar_class_init (GtkProgressBarClass *class)
 
   g_object_class_install_properties (gobject_class, NUM_PROPERTIES, progress_props);
 
-  /**
-   * GtkProgressBar:xspacing:
-   *
-   * Extra spacing applied to the width of a progress bar.
-   *
-   * Deprecated: 3.20: Use the standard CSS padding and margins; the
-   *     value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("xspacing",
-                                                             P_("X spacing"),
-                                                             P_("Extra spacing applied to the width of a progress bar."),
-                                                             0, G_MAXINT, 2,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-
-  /**
-   * GtkProgressBar:yspacing:
-   *
-   * Extra spacing applied to the height of a progress bar.
-   *
-   * Deprecated: 3.20: Use the standard CSS padding and margins; the
-   *     value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("yspacing",
-                                                             P_("Y spacing"),
-                                                             P_("Extra spacing applied to the height of a progress bar."),
-                                                             0, G_MAXINT, 2,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-
-  /**
-   * GtkProgressBar:min-horizontal-bar-width:
-   *
-   * The minimum horizontal width of the progress bar.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use the standard CSS property min-width.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("min-horizontal-bar-width",
-                                                             P_("Minimum horizontal bar width"),
-                                                             P_("The minimum horizontal width of the progress bar"),
-                                                             1, G_MAXINT, MIN_HORIZONTAL_BAR_WIDTH,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-  /**
-   * GtkProgressBar:min-horizontal-bar-height:
-   *
-   * Minimum horizontal height of the progress bar.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use the standard CSS property min-height.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("min-horizontal-bar-height",
-                                                             P_("Minimum horizontal bar height"),
-                                                             P_("Minimum horizontal height of the progress bar"),
-                                                             1, G_MAXINT, MIN_HORIZONTAL_BAR_HEIGHT,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-  /**
-   * GtkProgressBar:min-vertical-bar-width:
-   *
-   * The minimum vertical width of the progress bar.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use the standard CSS proeprty min-width.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("min-vertical-bar-width",
-                                                             P_("Minimum vertical bar width"),
-                                                             P_("The minimum vertical width of the progress bar"),
-                                                             1, G_MAXINT, MIN_VERTICAL_BAR_WIDTH,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-  /**
-   * GtkProgressBar:min-vertical-bar-height:
-   *
-   * The minimum vertical height of the progress bar.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use the standard CSS property min-height.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_int ("min-vertical-bar-height",
-                                                             P_("Minimum vertical bar height"),
-                                                             P_("The minimum vertical height of the progress bar"),
-                                                             1, G_MAXINT, MIN_VERTICAL_BAR_HEIGHT,
-                                                             G_PARAM_READWRITE|G_PARAM_DEPRECATED));
-
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_PROGRESS_BAR_ACCESSIBLE);
   gtk_widget_class_set_css_name (widget_class, "progressbar");
 }
@@ -554,7 +447,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
                                                    GTK_WIDGET (pbar),
                                                    priv->gadget,
                                                    NULL,
-                                                   gtk_progress_bar_measure_trough,
+                                                   NULL,
                                                    gtk_progress_bar_allocate_trough,
                                                    gtk_progress_bar_render_trough,
                                                    NULL,
@@ -564,7 +457,7 @@ gtk_progress_bar_init (GtkProgressBar *pbar)
                                                      GTK_WIDGET (pbar),
                                                      priv->trough_gadget,
                                                      NULL,
-                                                     gtk_progress_bar_measure_progress,
+                                                     NULL,
                                                      NULL,
                                                      NULL,
                                                      NULL,
@@ -844,126 +737,6 @@ gtk_progress_bar_measure_text (GtkCssGadget   *gadget,
   g_object_unref (layout);
 }
 
-static gint
-get_number (GtkCssStyle *style,
-            guint        property)
-{
-  double d = _gtk_css_number_value_get (gtk_css_style_get_value (style, property), 100.0);
-
-  if (d < 1)
-    return ceil (d);
-  else
-    return floor (d);
-}
-
-static void
-gtk_progress_bar_measure_trough (GtkCssGadget   *gadget,
-                                 GtkOrientation  orientation,
-                                 int             for_size,
-                                 int            *minimum,
-                                 int            *natural,
-                                 int            *minimum_baseline,
-                                 int            *natural_baseline,
-                                 gpointer        data)
-{
-  GtkWidget *widget;
-  GtkProgressBarPrivate *priv;
-  GtkCssStyle *style;
-
-  widget = gtk_css_gadget_get_owner (gadget);
-  priv = GTK_PROGRESS_BAR (widget)->priv;
-
-  style = gtk_css_gadget_get_style (gadget);
-  if (orientation == GTK_ORIENTATION_HORIZONTAL)
-    {
-      gdouble min_width;
-
-      min_width = _gtk_css_number_value_get (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_MIN_WIDTH), 100.0);
-
-      if (min_width > 0.0)
-        *minimum = 0;
-      else if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
-        gtk_widget_style_get (widget, "min-horizontal-bar-width", minimum, NULL);
-      else
-        gtk_widget_style_get (widget, "min-vertical-bar-width", minimum, NULL);
-    }
-  else
-    {
-      gdouble min_height;
-
-      min_height = _gtk_css_number_value_get (gtk_css_style_get_value (style, GTK_CSS_PROPERTY_MIN_HEIGHT), 100.0);
-
-      if (min_height > 0.0)
-        *minimum = 0;
-      else if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
-        gtk_widget_style_get (widget, "min-horizontal-bar-height", minimum, NULL);
-      else
-        gtk_widget_style_get (widget, "min-vertical-bar-height", minimum, NULL);
-    }
-
-  *natural = *minimum;
-
-  if (minimum_baseline)
-    *minimum_baseline = -1;
-  if (natural_baseline)
-    *natural_baseline = -1;
-}
-
-static void
-gtk_progress_bar_measure_progress (GtkCssGadget   *gadget,
-                                   GtkOrientation  orientation,
-                                   int             for_size,
-                                   int            *minimum,
-                                   int            *natural,
-                                   int            *minimum_baseline,
-                                   int            *natural_baseline,
-                                   gpointer        data)
-{
-  GtkWidget *widget;
-  GtkProgressBar *pbar;
-  GtkProgressBarPrivate *priv;
-  GtkCssStyle *style;
-
-  widget = gtk_css_gadget_get_owner (gadget);
-  pbar = GTK_PROGRESS_BAR (widget);
-  priv = pbar->priv;
-
-  style = gtk_css_gadget_get_style (gadget);
-  if (orientation == GTK_ORIENTATION_HORIZONTAL)
-    {
-      gint min_width;
-
-      min_width = get_number (style, GTK_CSS_PROPERTY_MIN_WIDTH);
-
-      if (min_width != 0)
-        *minimum = min_width;
-      else if (priv->orientation == GTK_ORIENTATION_HORIZONTAL)
-        *minimum = 0;
-      else
-        gtk_widget_style_get (widget, "min-vertical-bar-width", minimum, NULL);
-    }
-  else
-    {
-      gint min_height;
-
-      min_height = get_number (style, GTK_CSS_PROPERTY_MIN_HEIGHT);
-
-      if (min_height != 0)
-        *minimum = min_height;
-      else if (priv->orientation == GTK_ORIENTATION_VERTICAL)
-        *minimum = 0;
-      else
-        gtk_widget_style_get (widget, "min-horizontal-bar-height", minimum, NULL);
-    }
-
-  *natural = *minimum;
-
-  if (minimum_baseline)
-    *minimum_baseline = -1;
-  if (natural_baseline)
-    *natural_baseline = -1;
-}
-
 static void
 gtk_progress_bar_size_allocate (GtkWidget     *widget,
                                 GtkAllocation *allocation)
index ad86c0d5ad021175bb06895a68098eb036fce828..8ce5ee91165472aaf2d94ace73b5c7984f86b558 100644 (file)
@@ -526,22 +526,6 @@ gtk_range_class_init (GtkRangeClass *class)
 
   g_object_class_install_properties (gobject_class, LAST_PROP, properties);
 
-  /**
-   * GtkRange:slider-width:
-   *
-   * Width of scrollbar or scale thumb.
-   *
-   * Deprecated: 3.20: Use the min-height/min-width CSS properties on the
-   *   slider element. The value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("slider-width",
-                                                            P_("Slider Width"),
-                                                            P_("Width of scrollbar or scale thumb"),
-                                                            0,
-                                                            G_MAXINT,
-                                                            14,
-                                                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
   /**
    * GtkRange:trough-border:
    *
@@ -558,22 +542,6 @@ gtk_range_class_init (GtkRangeClass *class)
                                                              G_MAXINT,
                                                              1,
                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-  /**
-   * GtkRange:stepper-size:
-   *
-   * Length of step buttons at ends.
-   *
-   * Deprecated: 3.20: Use the min-height/min-width CSS properties on the
-   *   stepper elements. The value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                          g_param_spec_int ("stepper-size",
-                                                            P_("Stepper Size"),
-                                                            P_("Length of step buttons at ends"),
-                                                            0,
-                                                            G_MAXINT,
-                                                            14,
-                                                            GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
   /**
    * GtkRange:stepper-spacing:
    *
@@ -642,23 +610,6 @@ gtk_range_class_init (GtkRangeClass *class)
                                                                  TRUE,
                                                                  GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
 
-  /**
-   * GtkRange:arrow-scaling:
-   *
-   * The arrow size proportion relative to the scroll button size.
-   *
-   * Since: 2.14
-   *
-   * Deprecated: 3.20: Use min-width/min-height on the "button" node instead.
-   *   The value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_float ("arrow-scaling",
-                                                              P_("Arrow scaling"),
-                                                              P_("Arrow scaling with regard to scroll button size"),
-                                                              0.0, 1.0, 0.5,
-                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_RANGE_ACCESSIBLE);
 }
 
index a3caec71be53d0bdd236de22d720e6fcb62ad621..fe4190e251a15980dece59f77b8d7a542b07a595 100644 (file)
@@ -439,22 +439,6 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
                                     PROP_ORIENTATION,
                                     "orientation");
 
-  /**
-   * GtkSpinButton:shadow-type:
-   *
-   * Style of bevel around the sping button.
-   *
-   * Deprecated: 3.20: Use CSS to determine the style of the border;
-   *     the value of this style property is ignored.
-   */
-  gtk_widget_class_install_style_property (widget_class,
-                                           g_param_spec_enum ("shadow-type",
-                                                              P_("Shadow Type"),
-                                                              P_("Style of bevel around the spin button"),
-                                                              GTK_TYPE_SHADOW_TYPE,
-                                                              GTK_SHADOW_IN,
-                                                              GTK_PARAM_READABLE|G_PARAM_DEPRECATED));
-
   /**
    * GtkSpinButton::input:
    * @spin_button: the object on which the signal was emitted